home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2386 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: SOCKETS
  5. Date: Sat, 20 Jan 96 23:53:03 GMT
  6. Organization: none
  7. Message-ID: <822181983snz@genesis.demon.co.uk>
  8. References: <4drdt9$n9e@percy.cs.bham.ac.uk>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4drdt9$n9e@percy.cs.bham.ac.uk>
  15.            M.J.Thomsit-CSSE93@cs.bham.ac.uk "Mark J Thomsit" writes:
  16.  
  17. >Is there a way to check if a socket is holding any data, without having to wait
  18. >until some data appears, ?
  19.  
  20. Not in C, since the C language doesn't have any support for sockets. You
  21. may find what you want by looking up select() in your manuals but any
  22. further discussion should be directed to comp.unix.programmer (or
  23. somewhere relevant to the particular socket library you are using).
  24.  
  25. -- 
  26. -----------------------------------------
  27. Lawrence Kirby | fred@genesis.demon.co.uk
  28. Wilts, England | 70734.126@compuserve.com
  29. -----------------------------------------
  30.